

import java.io.IOException;
import java.net.InetAddress;

public class ServerSide {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws ClassNotFoundException 
	 */
	public static void main(String[] args) throws IOException, ClassNotFoundException {
		
		int[] ports = {4001};
		String[] Ips = {"192.168.10.76"};
		
		Address a[] ={new Address(InetAddress.getLocalHost().getHostAddress(),4003),new Address(InetAddress.getLocalHost().getHostAddress(),4004)};

		
		BestEffortBroadcast beb = new BestEffortBroadcast(4004,a);

		System.out.println("From Client:"+beb.deliver().toString());
		beb.send(new Message(new String("s:testeHeader"),new String("S:testMessage")));
		

		beb.closeConection();

	}

}
